package com.ynet.middleground.user.bean;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 添加渠道以及对应公司请求类
 * @date 2020-07-01 14:42
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "添加渠道以及对应公司请求对象", description = "添加渠道以及对应公司请求对象")
public class AddChannelAndCompanyReq extends BaseReqObj {

    /**
     * 渠道编码
     */
    @NotEmpty(message = "渠道编码不能为空")
    @ApiModelProperty(value = "渠道编码", notes = "渠道编码", dataType = "String", required = true)
    @Size(max = 5, message = "长度为 5")
    private String channelCode;

    /**
     * 渠道名称
     */
    @NotEmpty(message = "渠道名称不能为空")
    @ApiModelProperty(value = "渠道名称", notes = "渠道名称", dataType = "String", required = true)
    @Size(max = 10, message = "长度为 10")
    private String channelName;

    /**
     * 描述
     */
    @NotEmpty(message = "描述不能为空")
    @ApiModelProperty(value = "描述", notes = "描述", dataType = "String", required = true)
    @Size(max = 255, message = "长度为 255")
    private String description;

    /**
     * 公司编码
     */
    @NotEmpty(message = "公司编码不能为空")
    @ApiModelProperty(value = "公司编码", notes = "公司编码", dataType = "String", required = true)
    @Size(max = 10, message = "长度为 10")
    private String companyCode;

    /**
     * 公司名称
     */
    @NotEmpty(message = "公司名称不能为空")
    @ApiModelProperty(value = "公司名称", notes = "公司名称", dataType = "String", required = true)
    @Size(max = 30, message = "长度为 30")
    private String companyName;

}
